package com.yonyou.cyxdms.sysAuth.service.dto;

import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import java.io.Serializable;


/**
 * <p>
 * 客户子系统基础参数表
 * </p>
 *
 * @author quankk
 * @since 2019-07-05
 */

public class CustomerBasedataDTO extends DMSBaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 基础数据ID
     */
        private Integer basedataId;
        /**
     * 经销商代码
     */
        private String dealerCode;
        /**
     * 基础数据代码
     */
        private String basedataCode;
        /**
     * 基础数据名称
     */
        private String basedataName;
        /**
     * 基础数据关联ID
     */
        private Integer basedataRelateId;
        /**
     * 数据来源
     */
        private Integer dataSources;
        /**
     * 是否有效
     */
        private Integer isValid;
        /**
     * 基础数据描述
     */
        private String basedataDescribe;
        /**
     * 基础数据类型
     */
        private Integer basedataType;
            private Boolean isDeleted;
    
    public CustomerBasedataDTO() {
        super();
    }




    public Integer getBasedataId() {
        return basedataId;
    }


    public void setBasedataId(Integer basedataId) {
        this.basedataId = basedataId;
    }



    public String getDealerCode() {
        return dealerCode;
    }


    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode;
    }



    public String getBasedataCode() {
        return basedataCode;
    }


    public void setBasedataCode(String basedataCode) {
        this.basedataCode = basedataCode;
    }



    public String getBasedataName() {
        return basedataName;
    }


    public void setBasedataName(String basedataName) {
        this.basedataName = basedataName;
    }



    public Integer getBasedataRelateId() {
        return basedataRelateId;
    }


    public void setBasedataRelateId(Integer basedataRelateId) {
        this.basedataRelateId = basedataRelateId;
    }



    public Integer getDataSources() {
        return dataSources;
    }


    public void setDataSources(Integer dataSources) {
        this.dataSources = dataSources;
    }



    public Integer getIsValid() {
        return isValid;
    }


    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }



    public String getBasedataDescribe() {
        return basedataDescribe;
    }


    public void setBasedataDescribe(String basedataDescribe) {
        this.basedataDescribe = basedataDescribe;
    }



    public Integer getBasedataType() {
        return basedataType;
    }


    public void setBasedataType(Integer basedataType) {
        this.basedataType = basedataType;
    }



    public Boolean getDeleted() {
        return isDeleted;
    }


    public void setDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }



    @Override
    public String toString() {
        return "CustomerBasedataDTO{" +
        "basedataId=" + basedataId +
        ", dealerCode=" + dealerCode +
        ", basedataCode=" + basedataCode +
        ", basedataName=" + basedataName +
        ", basedataRelateId=" + basedataRelateId +
        ", dataSources=" + dataSources +
        ", isValid=" + isValid +
        ", basedataDescribe=" + basedataDescribe +
        ", basedataType=" + basedataType +
        ", isDeleted=" + isDeleted +
        "}";
    }
    /**
     * 将DTO 转换为PO
     * //对某个对象属性进行赋值
     * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param poClass dto 需要转换的dto
     * @author quankk
     * @since 2018/7/22 0022
     */
    @Override
    public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
        return super.transDtoToPo(poClass);
    }

    /**
     * 将DTO 转换为PO
     * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param po 需要转换的对象
     * @author quankk
     * @since 2018/7/22 0022
     */
    public <T extends BasePO> void transDtoToPo(T po) {
        BeanMapperUtil.copyProperties(this, po, "basedataId");
    }

}
